<extend name="Public/base" />
<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>{$info['id']?'编辑':'添加'}门票</h2>
    </div>
    <!-- 标签页导航 -->
    <div class="tab-wrap">
        <div class="tab-content">
            <!-- 表单 -->
            <form id="form" action="" method="post" class="form-horizontal">
                <div class="form-item cf">
                    <label class="item-label">门票名称<span class="check-tips">（门票名称）</span></label>
                    <div class="controls"><input type="text" class="text input-large" name="tickets_name" value="{$info.tickets_name}"></div>
                </div>
                <div class="form-item cf">
                    <label class="item-label">门票数量<span class="check-tips">（门票数量）</span></label>
                    <div class="controls"><input type="text" class="text input-large" name="tickets_num" value="{$info.tickets_num}"></div>
                </div>
                <div class="form-item cf">
                    <label class="item-label">普通门票价钱<span class="check-tips">（普通门票价钱）</span></label>
                    <div class="controls"><input type="text" class="text input-large" name="tickets_price" value="{$info.tickets_price}"></div>
                </div>
                <div class="form-item cf">
                    <label class="item-label">群主门票价钱<span class="check-tips">（群主门票价钱）</span></label>
                    <div class="controls"><input type="text" class="text input-large" name="vip_price" value="{$info.vip_price}"></div>
                </div>
                <div class="form-item cf">
                    <label class="item-label">内容或简介：<span class="check-tips">（请不要多于1000字否则无法发送!）</span></label>
                    <div class="controls">
                        <textarea name="projects">{$info.projects}</textarea>
                        {:hook('adminArticleEdit', array('name'=>projects,'value'=>$info.projects))}
                    </div>
                </div>
                <script type="text/javascript">
                    UE.getEditor('myEditor', {
                        theme:"default", //皮肤
                        lang:"zh-cn", //语言
                        initialFrameWidth:800,  //初始化编辑器宽度,默认800
                        initialFrameHeight:320
                    });
                </script>
                <div class="form-item cf">
                    <input type='hidden' name='tickets_id' value='{$info.tickets_id}'>
                    <button class="btn submit-btn ajax-post hidden" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    <a class="btn btn-return" href="{:U('Tickets/index')}">返 回</a>
                </div>
            </form>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        highlight_subnav('{:U('Tickets/index')}');
    </script>
</block>
